#include<stdio.h>

void Print(int(*ptr)[5], int r, int c) {
	int i = 0;
	for (i; i < r; i++) {
		int j = 0;
		for (j; j < c; j++) {
			printf("%d ", *(*(ptr + i) + j));
		}
		printf("\n");
	}
}

int main() {
	/*int arr[5] = { 1,2,3,4,5 };
	int (*ptr)[5] = &arr;
	int arr1[3][5] = { {1,2,3,4,5},{2,3,4,5,6},{3,4,5,6,7} };
	Print(arr1, 3, 5);*/
	/*printf("%p\n", arr);
	printf("%p\n", arr+1);
	printf("%p\n", ptr);
	printf("%p\n", ptr+1);*/
	/*int sz = sizeof(arr) / sizeof(arr[0]);
	int i = 0;
	for (i; i < sz; i++) {
		printf("%d ", (*ptr)[i]);
	}*/
	int crr1[] = { 1,2,3,4,5 };
	int crr2[] = { 2,3,4,5,6 };
	int crr3[] = { 3,4,5,6,7 };
	int* crr[3] = {crr1,crr2,crr3};
	int i = 0;
	for (i = 0; i < 3; i++) {
		int j = 0;
		for (j = 0; j < 5; j++) {
			printf("%d ", crr[i][j]);

		}
		printf("\n");
	}
	return 0;
}